package com.zengdada.authority.model;

import javax.persistence.*;

@Table(name = "SYOAUTH.DYNAMIC_TABLE_SEARCH")
public class DynamicTableSearch {
    /**
     * 表格ID
     */
    @Id
    @Column(name = "ID")
    private String id;

    @Column(name = "WIDTH")
    private Integer width;

    @Column(name = "HEIGHT")
    private Integer height;

    /**
     * 是否是动态的
     */
    @Column(name = "IS_DYNAMIC")
    private String isDynamic;

    /**
     * 返回值格式
     */
    @Column(name = "RETURN_FORMAT")
    private String returnFormat;

    /**
     * 搜索回调
     */
    @Column(name = "SEARCH")
    private String search;

    /**
     * 获取表格ID
     *
     * @return ID - 表格ID
     */
    public String getId() {
        return id;
    }

    /**
     * 设置表格ID
     *
     * @param id 表格ID
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /**
     * @return WIDTH
     */
    public Integer getWidth() {
        return width;
    }

    /**
     * @param width
     */
    public void setWidth(Integer width) {
        this.width = width;
    }

    /**
     * @return HEIGHT
     */
    public Integer getHeight() {
        return height;
    }

    /**
     * @param height
     */
    public void setHeight(Integer height) {
        this.height = height;
    }

    /**
     * 获取是否是动态的
     *
     * @return IS_DYNAMIC - 是否是动态的
     */
    public String getIsDynamic() {
        return isDynamic;
    }

    /**
     * 设置是否是动态的
     *
     * @param isDynamic 是否是动态的
     */
    public void setIsDynamic(String isDynamic) {
        this.isDynamic = isDynamic == null ? null : isDynamic.trim();
    }

    /**
     * 获取返回值格式
     *
     * @return RETURN_FORMAT - 返回值格式
     */
    public String getReturnFormat() {
        return returnFormat;
    }

    /**
     * 设置返回值格式
     *
     * @param returnFormat 返回值格式
     */
    public void setReturnFormat(String returnFormat) {
        this.returnFormat = returnFormat == null ? null : returnFormat.trim();
    }

    /**
     * 获取搜索回调
     *
     * @return SEARCH - 搜索回调
     */
    public String getSearch() {
        return search;
    }

    /**
     * 设置搜索回调
     *
     * @param search 搜索回调
     */
    public void setSearch(String search) {
        this.search = search == null ? null : search.trim();
    }
}